	//////////////////////////与主页面有关的一些函数////////////////////////////////////////////////	
    //////////main///////////////////////////////////
	/*function Main(){}
	
	Main.searchChart="";
	
	//加载header
	Main.loadHeader = function(){
	    $('#header').load('../main/header.do?method='+rnd(),'',function(){});
	}
	
	//加载面板.
	Main.loadBoard= function(){
        $('#board').load('../main/board.do?method='+rnd(),'',function(){});	
	}
	
	//加载主页
	Main.loadHome = function(){	
//		Main.clearData();
	    $('#main').load('../main/home.do?method='+rnd(),'',function(){
	    	Help.show(101);
	    	Main.searchChart = Main.search2DPie;
	    	Main.searchChart();
	    });
	}
	
	
	Main.search2DPie = function(){
		
		var so = new SWFObject("components/chart/ampie/ampie.swf", "caakee", "100%", "100%", "2", "#FFFFFF");
		so.addVariable("loading_data", "正在加载..."); 
		so.addParam("wmode","transparent");//让flash和网页成一体
		so.addVariable("path", "components/chart/ampie/");
		so.addVariable("settings_file", encodeURIComponent("components/chart/ampie/2d_main_ampie_settings.xml?"+rnd()));
		so.addVariable("data_file", encodeURIComponent("../main/home.do?method=pie"+rnd()));
		so.write("month_chart");
		
	}

	//超链接传ID打开账本	
	Main.openBook=function(bookId){
		
		CM.confirm('确认要切换账本吗？<br/>账本切换以后，账会记到最新的账本中，跟原来的账本没有任何关系了。',function(){
			if(window.event)window.event.returnValue = false; //IE6失效解决之
			window.location.href=ctx+'/main/index.do?bookId='+bookId;
		},'');
	}

    //刷新主页面
    Main.refresh = function(){
        //Main.loadHeader();
        Main.loadBoard();
    }
 	//账本初始化
    Main.goInit = function(){
        CM.open('../main/init.do?'+rnd(),{title:'账本初始化',size:WINDOW_M},function(){
        	Help.show(716,1)
        });
    }
    
    //账本初始化
 	Main.doInit=function(){
 	      if (!validForm('initForm')) return;
 	      document.initForm.action='../main/init.do?method=doInit';
 	      document.initForm.submit();
 	}
 	
 	function Init(){}
 	//紧急公告
	Init.showBulletin=function(callback){
		CM.open("../main/init.do?method=bulletin"+rnd(),{title:'紧急公告',size:{width:500,height:300},afterHide:callback});
	}
	
	//判断是否读过
	Init.visted=function(me,oid){
		var checked=me.checked;
		if(checked){
			submitReq("../main/init.do?method=bulletinHit&oid="+oid+"&visted=1"+rnd(),function(){});
		}else{
			submitReq("../main/init.do?method=bulletinHit&oid="+oid+"&visted=0"+rnd(),function(){});
		}
	}*/
 	